<template>
    <h3>我是Son组件{{car.name}}{{car.price}}</h3>
</template>

<script setup lang="ts">
    import {inject} from 'vue'
    let car = inject('car')
    console.log(car,'Son-----------')
</script>

<style scoped lang="less">

</style>
